package com.hsjk.szwj.module.official.controller.admin.unit.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/11/23 23:58
 **/
@Data
public class AdminModuleFeedUpdateReqVO {
    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "xxx")
    @NotNull(message = "id不能为空")
    private Long id;
    /**
     * 显示类型;1：对齐，2：不规则
     */
    @Schema(description = "显示类型;1：对齐，2：不规则", requiredMode = Schema.RequiredMode.REQUIRED, example = "xxx")
    private Integer feedShowType;

    /**
     * 图片地址URL
     */
    @Schema(description = "图片地址URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "xxx")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> imageUrls;
    /**
     * 视频地址URL
     */
    @Schema(description = "视频地址URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "xxx")
    private String videoUrl;
    /**
     * 视频封面URL
     */
    @Schema(description = "视频封面URL", requiredMode = Schema.RequiredMode.REQUIRED, example = "xxx")
    private String videoCoverUrl;
    /**
     * 内容
     */
    @Schema(description = "内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "xxx")
    private String feedContent;
    /**
     * 排序
     */
    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "xxx")
    private Integer sortNo;
}
